<%@ page language="java" import="java.util.*,com.hs.core.utils.*" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head> 
<%@ include file="../../include.jsp"%> 
<script src='<%=basePath%>thirtpart/jquery/jquery.blockUI.js'></script> 
<script src='<%=basePath%>app/js/hs.search.js'></script> 

<style>.tac{text-align:center}</style>
<script>
/**
检索
*/
function testSearch(otherParams,rowcount){
    
	var divid = "txt_";
	var paramStr = "?1=1&paramnames=";
	for(var i=1; i<=rowcount; i++){
		var divcur = divid + i + "_value";
		var curobj = ge(divcur);
		var curselStr = divid+i+"_sel";
		//字段值
		//var curvalueStr = divid+i+"_value";
		//逻辑运算符
		//var curlogicStr = divid+i+"_relation";
		//var curspecialStr = divid+i+"_special";
		
		if(curobj != undefined ){
 			if(curobj.value != "")
			{
				var curvalue = curobj.value;
				paramStr +=  curselStr +"$" ;
				//if(i !=1){
				//	var curlogic = ge(curlogicStr).value;
				//}else{
				//	var curlogic = 0 ;
				//}
				/**
				var cursel = ge(curselStr).value;
				var curspecial = ge(curspecialStr).value;
				if(onestr.indexOf("&")!=-1){
					paramStr = paramStr + "&";
				}*/
				//paramStr = onestr + curvalueStr+"="+curvalue+"&"+curlogicStr+"="+curlogic+"&"+curselStr+"="+cursel+"&"+curspecialStr+"="+curspecial;
			}
		}
		
	}  
	 
	paramStr +="&otherparams="+otherParams; 
	//alert(paramStr);
    searchform.action="<%=basePath %>search/test.do"+paramStr;
    searchform.submit();
}
</script>
</head>
<body>
<form action="<%=basePath %>search/test.do" name="searchform" method="post">
<table id="txt" border="1">
            <input id="txt_i" value="1" type="hidden" name="txt_i">
            <input id="txt_c" value="15" type="hidden" name="txt_c">
            <tbody>
            <tr id="hidden_logical_txt" style="display:none">
                <td nowrap="true" style="width:10%;" align="right">
                    <select id="{key}_logical" name="{key}_logical" style="width:60px">
                        <option value="AND" selected="">并且</option>
                        <option value="OR">或者</option>
                    </select>
                </td> 
            </tr>
            <tr id="txt_1" >
                <td nowrap="true" style="width:10%" height="25">
                    <span style="padding-left:9px"></span><a href="javascript:AddRowEx('txt','txt_i','txt_c');">
                        <img src="<%=imagePath %>01.gif" border="0">
                    </a>&nbsp;&nbsp;<a href="javascript:DeleteRow('txt','txt_i','txt_c');">
                        <img src="<%=imagePath %>02.gif" border="0">
                    </a>&nbsp;&nbsp;
                </td>
               <td width="89%" height="25" align="left">
                  (
                    <select id="txt_1_sel" name="txt_1_sel"   style="width:105px">
                        <option value="SU" selected="">主题</option>
                        <option value="TI">篇名</option>
                        <option value="KY">关键词</option>
                        <option value="AU">作者</option>
                        <option value="DF">单位</option>
                        <option value="LY">刊名</option>
                        <option value="SN$=|?">ISSN</option>
                        <option value="CN">CN</option>
                        <option value="QI">期</option>
                        <option value="FU">基金</option>
                        <option value="AB">摘要</option>
                        <option value="FT">全文</option>
                        <option value="RF">参考文献</option>                       
                        <option value="CLC$=|?">中图分类号</option>
                    </select>
                    <input   value="" id="txt_1_value" name="txt_1_value" size="10" maxlength="120" type="text" onfocus=""   onpaste="return SignVal(this,&#39;value&#39;,event)" onkeyup="SignVal1(this)" style="width:200px;"/>
                     <select id="txt_1_special" name="txt_1_special" onchange="">
                        <option value="%">模糊</option>
                        <option value="=" selected="">精确</option>
                    </select>
                 )
                </td> 
            </tr> 
        </tbody>
      </table>  
      <input type="button" value="检索" onclick="testSearch('',15)"/>
      </form>
</body>
</html>
